<extend name="Public/printbase" />
<block name="body">
    <div>
        <table width="100%">
            <tr>
                <td align="center" valign="middle" colspan="4" style="font-size: 20px;font-weight: bold;">门店进货单</td>
            </tr>
            <tr>
                <td colspan="4" >货流单号：{$data.batchNum}</td>
            </tr>
             <tr>
                <td>制单门店：</td>
                <td>果然100总部</td>
                <td>制单时间：</td>
                <td>{$nowtime}</td>
            </tr>
             <tr>
                <td colspan="4" >备注信息：{$data.remark}</td>
            </tr>    
           <tr>
                <td align="center" valign="middle" colspan="4" style="font-size: 20px;font-weight: bold;">订货列表</td>
            </tr>
        </table>
        
        <table width="100%" class="table table-bordered text-center"  >
            <tr>
                <th>行号</th>
          
                <th>商品名称</th>
                <th>单位</th>
                <th>订货数量</th>
                <th>实发数量</th>
                <th>单价</th>
                <th>小计</th>
            </tr>
            <volist name="_list" id="vo">
                <tr>
                    <td >{$i}</td>
                  
                    <td>{$vo.productname}</td>
                    <td>{$vo.unit}</td>
                    <td>{$vo.bookNum}</td>                 
                    <td>{$vo.sendNum}</td>
                    <td>{$vo.outstockprice}</td>
                    <td>{$vo.subtotal}</td>
                </tr>
            </volist>
            <tr>
                    <td >总计</td>
                    <td colspan="3"></td>
                    <td>{$sumshuliang}</td>
                    <td colspan="1"></td>
                    <td>{$sumjine}</td>  
                </tr>
        </table>
        <table width="100%">
            <tr>
                <td>进货门店：{$data.shopId|get_sp_shop_name}</td>
                <td></td>
                <td>签收时间：</td>
                <td></td>
            </tr>
              <tr>
                <td>进货地址：{$data.shopId|get_sp_shop_address}</td>
                <td></td>
                <td>确认签收：</td>
                <td></td>
            </tr>
        </table>
    </div>
    
    <div class="text-center" style="padding: 50px;">
        <button class="btn btn-primary hidden-print" onclick="javascrīpt:window.print()">打印</button>
        <button class="btn btn-primary hidden-print"  onclick="javascript:window.close()">关闭</button>
    
    </div>
</block>